package com.xiaotu.spring.config;

import com.xiaotu.spring.service.TaskService;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * @author zhangxiao
 * @create 2021-11-08 9:43
 */
@Component
public class TaskBean {

    @Bean(initMethod = "initMethod", destroyMethod = "destroyMethod")
    public TaskService taskService() {
        return new TaskService();
    }

}
